proc msg:banlist {nick host handle arg} {
  global botnick

  set argument [lindex $arg 0]

  # if channel in argument
  if {[string match "#*" $argument]} {
    # if valid channel
    if {[validchan $argument]} {
      set chan $argument
    } else {
      putquick "NOTICE $nick :\0034ERROR - This bot is not in $argument."
      return 0
    }
  } else {
    putquick "NOTICE $nick :\0034ERROR - You need to specify a channel."
    return 0
  }

  do_banlist $nick $chan $host
  return 0
}










